home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / helper / source / event.h < prev    next >
Text File  |  1991-10-18  |  755b  |  36 lines

  1. /*
  2.     マウス イベント処理ライブラリ ヘッダファイル
  3.  
  4.     1990.9.15    Make By ken
  5. */
  6.  
  7. #define    EVT_NON        0
  8. #define    EVT_ON_MOS    1
  9. #define    EVT_OFF_MOS    2
  10. #define    EVT_CLIP_MOS    3
  11. #define    EVT_SELECT_MOS    4
  12. #define    EVT_DOLACK_MOS    5
  13. #define    EVT_DLSEL_MOS    6
  14. #define    EVT_MOVE_MOS    7
  15. #define    EVT_REP_MOS    8
  16.  
  17. typedef struct _EP {
  18.     struct _EP    *next;
  19.     struct _EP    *actp;
  20.     int        no;
  21.     void    (*proc)();
  22.     short int    now;
  23.     short int    x1,y1,x2,y2;
  24. } EVENT;
  25.  
  26. EVENT    *EVT_set(EVENT *tp,int no,
  27.         int x1,int y1,int x2,int y2,void (*proc)());
  28. void    EVT_free(EVENT *tp);
  29. void    EVT_loop(EVENT *tp);
  30.  
  31. EVENT    *EVT_sw(EVENT *tp,int no,int x,int y,int cc,int bc,char *str);
  32. void    EVT_proc(EVENT *ep);
  33. int    EVT_wait(EVENT *tp);
  34.  
  35. extern int    EVT_msg_no;
  36.